import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/banner',
    method: 'post',
    data
  })
}
export function update(data) {
  return request({
    url: '/banner',
    method: 'put',
    data
  })
}

export function removebanner(id) {
  return request({
    url: '/banner/' + id,
    method: 'delete'
  })
}

export function bannerPage(data) {
  return request({
    url: '/banner/page',
    method: 'post',
    data
  })
}

export function getbannerById(id) {
  return request({
    url: '/banner/' + id,
    method: 'get'
  })
}
